﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using TyMES.Model.Record;
using TyMES.Model;

namespace TyMES.ViewModel.Record.ProduceDataRecordVMs
{
    public partial class ProduceDataRecordBatchVM : BaseBatchVM<ProduceDataRecord, ProduceDataRecord_BatchEdit>
    {
        public ProduceDataRecordBatchVM()
        {
            ListVM = new ProduceDataRecordListVM();
            LinkedVM = new ProduceDataRecord_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class ProduceDataRecord_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._ProduceDataRecord._SN")]
        public string SN { get; set; }
        [Display(Name = "_Model._ProduceDataRecord._StationCode")]
        public string StationCode { get; set; }
        [Display(Name = "_Model._ProduceDataRecord._DataName")]
        public string DataName { get; set; }
        [Display(Name = "_Model._ProduceDataRecord._Result")]
        public string Result { get; set; }
        [Display(Name = "_Model._ProduceDataRecord._Data")]
        public string Data { get; set; }
        [Display(Name = "_Model._ProduceDataRecord._SqlTime")]
        public string SqlTime { get; set; }
        [Display(Name = "_Model._ProduceDataRecord._SqlFlag")]
        public bool? SqlFlag { get; set; }
        [Display(Name = "_Model._ProduceDataRecord._Actualsort")]
        public int? Actualsort { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}